<div bsModal #actionModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="actionModal" aria-hidden="true"
  [config]="{backdrop: 'static'}">
  <div class="modal-dialog">
    <div class="modal-content">
      <form *ngIf="active" #editForm="ngForm" novalidate (ngSubmit)="save()">

        <div class="modal-header">
          <h4 class="modal-title">
            <span>{{actAbnormal}}</span>
          </h4>
          <button type="button" class="close" (click)="close()" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>

        <div class="modal-body">
            <h4>该异常节点包含<b>{{actNames.length}}</b>个正常节点:</h4>
            <hr>
            <p *ngFor="let actName of actNames" style="font-size: 16px;">{{actName}}</p>
            <hr>
            <div class="alert alert-warning" style="margin-top: 30px;">
                <em>触发该异常节点需要在当前节点前添加以上节点。</em>
            </div>

        </div>

        <div class="modal-footer">
          <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">{{l("Cancel")}}</button>
          <button type="submit" class="btn btn-primary blue" [disabled]="!editForm.form.valid"
            [buttonBusy]="saving" [busyText]="'触发中...'">
            <i class="fa fa-check-circle"></i>
            <span>触发</span>
          </button>
        </div>

      </form>

    </div>
  </div>
</div>
